import request from "./http";
export interface QueryParamDto {
  AccountId: number;
  AdxId?: number;
  AdxSubId?: number;
  page?: number;
  extParam?: object;
  size?: number;
  accountId?: number;
}
export function queryConversions(param: QueryParamDto): Promise<any> {
  return request("adx-tool/queryConversions", param);
}

// 创建转化追踪
export function addConversion(param: QueryParamDto): Promise<any> {
  return request("adx-tool/addConversion", param);
}

// 小米获取人群列表
export function queryAudienceList(param: QueryParamDto) {
  return request("adx-tool/queryAudienceList", param);
}

// 小米获取渠道素材
export function queryAdxMaterialList(param: QueryParamDto) {
  return request("/adx-tool/queryAdxMaterialList", param);
}